package com.ruoyi.system.service.impl;

import java.util.List;

import com.ruoyi.common.annotation.AutoFill;
import com.ruoyi.common.enums.AutoFillType;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.DispatchOneHourPressureAmplitudeStatisticsMapper;
import com.ruoyi.system.domain.DispatchOneHourPressureAmplitudeStatistics;
import com.ruoyi.system.service.IDispatchOneHourPressureAmplitudeStatisticsService;

/**
 * 1 小时压力振幅统计Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-03-02
 */
@Service
public class DispatchOneHourPressureAmplitudeStatisticsServiceImpl implements IDispatchOneHourPressureAmplitudeStatisticsService 
{
    @Autowired
    private DispatchOneHourPressureAmplitudeStatisticsMapper dispatchOneHourPressureAmplitudeStatisticsMapper;

    /**
     * 查询1 小时压力振幅统计
     * 
     * @param oneHourPressureAmplitudeStatisticsId 1 小时压力振幅统计主键
     * @return 1 小时压力振幅统计
     */
    @Override
    public DispatchOneHourPressureAmplitudeStatistics selectDispatchOneHourPressureAmplitudeStatisticsByOneHourPressureAmplitudeStatisticsId(Long oneHourPressureAmplitudeStatisticsId)
    {
        return dispatchOneHourPressureAmplitudeStatisticsMapper.selectDispatchOneHourPressureAmplitudeStatisticsByOneHourPressureAmplitudeStatisticsId(oneHourPressureAmplitudeStatisticsId);
    }

    /**
     * 查询1 小时压力振幅统计列表
     * 
     * @param dispatchOneHourPressureAmplitudeStatistics 1 小时压力振幅统计
     * @return 1 小时压力振幅统计
     */
    @Override
    public List<DispatchOneHourPressureAmplitudeStatistics> selectDispatchOneHourPressureAmplitudeStatisticsList(DispatchOneHourPressureAmplitudeStatistics dispatchOneHourPressureAmplitudeStatistics)
    {
        return dispatchOneHourPressureAmplitudeStatisticsMapper.selectDispatchOneHourPressureAmplitudeStatisticsList(dispatchOneHourPressureAmplitudeStatistics);
    }

    /**
     * 新增1 小时压力振幅统计
     * 
     * @param dispatchOneHourPressureAmplitudeStatistics 1 小时压力振幅统计
     * @return 结果
     */
    @AutoFill(operation = AutoFillType.INSERT)
    @Override
    public int insertDispatchOneHourPressureAmplitudeStatistics(DispatchOneHourPressureAmplitudeStatistics dispatchOneHourPressureAmplitudeStatistics)
    {
        return dispatchOneHourPressureAmplitudeStatisticsMapper.insertDispatchOneHourPressureAmplitudeStatistics(dispatchOneHourPressureAmplitudeStatistics);
    }

    /**
     * 修改1 小时压力振幅统计
     * 
     * @param dispatchOneHourPressureAmplitudeStatistics 1 小时压力振幅统计
     * @return 结果
     */
    @AutoFill(operation = AutoFillType.UPDATE)
    @Override
    public int updateDispatchOneHourPressureAmplitudeStatistics(DispatchOneHourPressureAmplitudeStatistics dispatchOneHourPressureAmplitudeStatistics)
    {
        return dispatchOneHourPressureAmplitudeStatisticsMapper.updateDispatchOneHourPressureAmplitudeStatistics(dispatchOneHourPressureAmplitudeStatistics);
    }

    /**
     * 批量删除1 小时压力振幅统计
     * 
     * @param oneHourPressureAmplitudeStatisticsIds 需要删除的1 小时压力振幅统计主键
     * @return 结果
     */
    @Override
    public int deleteDispatchOneHourPressureAmplitudeStatisticsByOneHourPressureAmplitudeStatisticsIds(Long[] oneHourPressureAmplitudeStatisticsIds)
    {
        return dispatchOneHourPressureAmplitudeStatisticsMapper.deleteDispatchOneHourPressureAmplitudeStatisticsByOneHourPressureAmplitudeStatisticsIds(oneHourPressureAmplitudeStatisticsIds);
    }

    /**
     * 删除1 小时压力振幅统计信息
     * 
     * @param oneHourPressureAmplitudeStatisticsId 1 小时压力振幅统计主键
     * @return 结果
     */
    @Override
    public int deleteDispatchOneHourPressureAmplitudeStatisticsByOneHourPressureAmplitudeStatisticsId(Long oneHourPressureAmplitudeStatisticsId)
    {
        return dispatchOneHourPressureAmplitudeStatisticsMapper.deleteDispatchOneHourPressureAmplitudeStatisticsByOneHourPressureAmplitudeStatisticsId(oneHourPressureAmplitudeStatisticsId);
    }
}
